# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route

# define our routes
game_routes = [
               build_route('restart','RestartHandler'),
               build_route('hunt','HuntHandler'),
               build_route('lion','LionHandler'),
               build_route('death','DeathHandler'),
               build_route('lion_pride','LionPrideHandler'),
               build_route('victory_room','VictoryRoomHandler'),
               build_route('kitchen','KitchenHandler'),
               build_route('bedroom','BedroomHandler'),
               build_route('main_hall','MainHallHandler'),
               build_route('outside','OutsideHandler'),
               build_route('river1','River1Handler'),
               build_route('river2','River2Handler'),
               build_route('river3','River3Handler'),
               build_route('river4','River4Handler'),
               build_route('river5','River5Handler'),
               build_route('bush1','Bush1Handler'),
               build_route('bush2','Bush2Handler'),
               build_route('bush3','Bush3Handler'),
               default_route('bedroom', 'BedroomHandler'),
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
